<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Tiny FTP: cmd_client.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Tiny FTP
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">cmd_client.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="preprocessor">#include &lt;errno.h&gt;</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#include &lt;unistd.h&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="preprocessor">#include &lt;sys/socket.h&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="preprocessor">#include &lt;sys/types.h&gt;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#include &lt;sys/stat.h&gt;</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="preprocessor">#include &lt;netinet/in.h&gt;</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#include &lt;arpa/inet.h&gt;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &lt;dirent.h&gt;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &lt;fcntl.h&gt;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &quot;config.h&quot;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &quot;ftp_client.h&quot;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="keywordtype">void</span> <a class="code hl_function" href="cmd__client_8c.html#ac29c297ae32acdb2172e926d5f144681">show_help</a>();</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="keywordtype">void</span> <a class="code hl_function" href="cmd__client_8c.html#ad378bfcab53bdae7f4b98336fa2fc10e">ftp_put</a>(<a class="code hl_struct" href="structMsg.html">Msg</a> *msg);</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="keywordtype">void</span> <a class="code hl_function" href="cmd__client_8c.html#acac70a76f405eb636128febfb0af92b1">ftp_get</a>(<a class="code hl_struct" href="structMsg.html">Msg</a> *msg);</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="keywordtype">void</span> <a class="code hl_function" href="cmd__client_8c.html#aa4de1281c324079b1c30bc1cedd406a9">ftp_list</a>(<a class="code hl_struct" href="structMsg.html">Msg</a> *msg);</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="keywordtype">void</span> <a class="code hl_function" href="cmd__client_8c.html#a8be8aad77880f84bc46b4102d654e7c7">ftp_pwd</a>(<a class="code hl_struct" href="structMsg.html">Msg</a> *msg);</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="keywordtype">void</span> <a class="code hl_function" href="cmd__client_8c.html#a3a82fe0eb6ae64cc36450b4cd427aee2">ftp_cd</a>(<a class="code hl_struct" href="structMsg.html">Msg</a> *msg);</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="keywordtype">void</span> <a class="code hl_function" href="cmd__client_8c.html#a1f562e4723804de2f79a6eeeac09101a">ftp_quit</a>(<a class="code hl_struct" href="structMsg.html">Msg</a> *msg);</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="keywordtype">void</span> <a class="code hl_function" href="cmd__client_8c.html#a4ac312058d761fdcd4fcad635109be2b">ftp_delete</a>(<a class="code hl_struct" href="structMsg.html">Msg</a> *msg);</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="keywordtype">void</span> <a class="code hl_function" href="cmd__client_8c.html#ad09107aa153b09da2cd98b8db15f1a23">ftp_mkdir</a>(<a class="code hl_struct" href="structMsg.html">Msg</a> *msg);</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="keywordtype">void</span> <a class="code hl_function" href="cmd__client_8c.html#a79c650194ffc71227a05a75ee584edff">ftp_rmdir</a>(<a class="code hl_struct" href="structMsg.html">Msg</a> *msg);</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="comment">//此三个为本地操作</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="keywordtype">void</span> <a class="code hl_function" href="cmd__client_8c.html#a20287282a4176cb60d52aa1006223d37">local_list</a>();</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="keywordtype">void</span> <a class="code hl_function" href="cmd__client_8c.html#adea1a1e277785005410106330dbd4e10">local_pwd</a>();</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="keywordtype">void</span> <a class="code hl_function" href="cmd__client_8c.html#aeca792fc35e08ffefefcc50c7ab7a4b9">local_cd</a>(<span class="keywordtype">char</span> *user_cmd);</div>
<div class="ttc" id="acmd__client_8c_html_a1f562e4723804de2f79a6eeeac09101a"><div class="ttname"><a href="cmd__client_8c.html#a1f562e4723804de2f79a6eeeac09101a">ftp_quit</a></div><div class="ttdeci">void ftp_quit(Msg *msg)</div><div class="ttdoc">QUIT命令</div><div class="ttdef"><b>Definition:</b> cmd_client.c:354</div></div>
<div class="ttc" id="acmd__client_8c_html_a20287282a4176cb60d52aa1006223d37"><div class="ttname"><a href="cmd__client_8c.html#a20287282a4176cb60d52aa1006223d37">local_list</a></div><div class="ttdeci">void local_list()</div><div class="ttdoc">本地LLS命令</div><div class="ttdef"><b>Definition:</b> cmd_client.c:473</div></div>
<div class="ttc" id="acmd__client_8c_html_a3a82fe0eb6ae64cc36450b4cd427aee2"><div class="ttname"><a href="cmd__client_8c.html#a3a82fe0eb6ae64cc36450b4cd427aee2">ftp_cd</a></div><div class="ttdeci">void ftp_cd(Msg *msg)</div><div class="ttdoc">CD命令</div><div class="ttdef"><b>Definition:</b> cmd_client.c:323</div></div>
<div class="ttc" id="acmd__client_8c_html_a4ac312058d761fdcd4fcad635109be2b"><div class="ttname"><a href="cmd__client_8c.html#a4ac312058d761fdcd4fcad635109be2b">ftp_delete</a></div><div class="ttdeci">void ftp_delete(Msg *msg)</div><div class="ttdoc">DELETE命令</div><div class="ttdef"><b>Definition:</b> cmd_client.c:360</div></div>
<div class="ttc" id="acmd__client_8c_html_a79c650194ffc71227a05a75ee584edff"><div class="ttname"><a href="cmd__client_8c.html#a79c650194ffc71227a05a75ee584edff">ftp_rmdir</a></div><div class="ttdeci">void ftp_rmdir(Msg *msg)</div><div class="ttdoc">RMDIR命令</div><div class="ttdef"><b>Definition:</b> cmd_client.c:439</div></div>
<div class="ttc" id="acmd__client_8c_html_a8be8aad77880f84bc46b4102d654e7c7"><div class="ttname"><a href="cmd__client_8c.html#a8be8aad77880f84bc46b4102d654e7c7">ftp_pwd</a></div><div class="ttdeci">void ftp_pwd(Msg *msg)</div><div class="ttdoc">PWD命令</div><div class="ttdef"><b>Definition:</b> cmd_client.c:317</div></div>
<div class="ttc" id="acmd__client_8c_html_aa4de1281c324079b1c30bc1cedd406a9"><div class="ttname"><a href="cmd__client_8c.html#aa4de1281c324079b1c30bc1cedd406a9">ftp_list</a></div><div class="ttdeci">void ftp_list(Msg *msg)</div><div class="ttdoc">LS命令</div><div class="ttdef"><b>Definition:</b> cmd_client.c:309</div></div>
<div class="ttc" id="acmd__client_8c_html_ac29c297ae32acdb2172e926d5f144681"><div class="ttname"><a href="cmd__client_8c.html#ac29c297ae32acdb2172e926d5f144681">show_help</a></div><div class="ttdeci">void show_help()</div><div class="ttdoc">在客户端展示帮助信息。</div><div class="ttdef"><b>Definition:</b> cmd_client.c:27</div></div>
<div class="ttc" id="acmd__client_8c_html_acac70a76f405eb636128febfb0af92b1"><div class="ttname"><a href="cmd__client_8c.html#acac70a76f405eb636128febfb0af92b1">ftp_get</a></div><div class="ttdeci">void ftp_get(Msg *msg)</div><div class="ttdoc">GET命令</div><div class="ttdef"><b>Definition:</b> cmd_client.c:199</div></div>
<div class="ttc" id="acmd__client_8c_html_ad09107aa153b09da2cd98b8db15f1a23"><div class="ttname"><a href="cmd__client_8c.html#ad09107aa153b09da2cd98b8db15f1a23">ftp_mkdir</a></div><div class="ttdeci">void ftp_mkdir(Msg *msg)</div><div class="ttdoc">MKDIR命令</div><div class="ttdef"><b>Definition:</b> cmd_client.c:399</div></div>
<div class="ttc" id="acmd__client_8c_html_ad378bfcab53bdae7f4b98336fa2fc10e"><div class="ttname"><a href="cmd__client_8c.html#ad378bfcab53bdae7f4b98336fa2fc10e">ftp_put</a></div><div class="ttdeci">void ftp_put(Msg *msg)</div><div class="ttdoc">PUT命令</div><div class="ttdef"><b>Definition:</b> cmd_client.c:124</div></div>
<div class="ttc" id="acmd__client_8c_html_adea1a1e277785005410106330dbd4e10"><div class="ttname"><a href="cmd__client_8c.html#adea1a1e277785005410106330dbd4e10">local_pwd</a></div><div class="ttdeci">void local_pwd()</div><div class="ttdoc">本地LPWD命令</div><div class="ttdef"><b>Definition:</b> cmd_client.c:492</div></div>
<div class="ttc" id="acmd__client_8c_html_aeca792fc35e08ffefefcc50c7ab7a4b9"><div class="ttname"><a href="cmd__client_8c.html#aeca792fc35e08ffefefcc50c7ab7a4b9">local_cd</a></div><div class="ttdeci">void local_cd(char *user_cmd)</div><div class="ttdoc">本地LCD命令</div><div class="ttdef"><b>Definition:</b> cmd_client.c:504</div></div>
<div class="ttc" id="astructMsg_html"><div class="ttname"><a href="structMsg.html">Msg</a></div><div class="ttdef"><b>Definition:</b> config.h:79</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
